﻿-- =============================================
-- Author:		Andreas Könighofer (IT-eXperience)
-- Create date: 14.01.2009
-- Description:	Inserts new location into Location table
-- =============================================
CREATE PROCEDURE [dbo].[CreateLocation] 
	-- Add the parameters for the stored procedure here
	@LocationName NVARCHAR(50)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    INSERT INTO [BigDays2009].[dbo].[Location]
    (
		[LocationName]
	)
    VALUES
    (
		@LocationName
	)
	
	RETURN SCOPE_IDENTITY()
END

---- end script CreateLocation stored procedure ----

---- start script CreateResource stored procedure ----

